//
//  ArticleModel.swift
//  SCUTWiki
//
//  Created by Wu Weisong on 2020/12/12.
//  Copyright © 2020 wwszhw. All rights reserved.
//

import Foundation

class ArticleModel{
    var id:Int
    var title:String
    var content:String
    var type_id:Int
    var collected:Bool
    
    init(rowData:[String:AnyObject]) {
        self.id = rowData["id"] as! Int
        self.title = rowData["title"] as! String
        self.content = rowData["content"] as! String
        self.type_id = rowData["type_id"] as! Int
        self.collected = rowData["collected"] as! Bool
    }
    init(id: Int, title: String, content:String, type_id:Int, collected:Bool){
        self.id = id
        self.title = title
        self.content = content
        self.type_id = type_id
        self.collected = collected
    }
}
